package com.syni.mdd.sjb.common.component.utils.common.thread;

import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.ScheduledExecutorService;

public class ThreadPoolUtils {
    private static ExecutorService executorService = Executors.newFixedThreadPool(10);

    public static ExecutorService getExecutorService() {
        return executorService;
    }

    public static ScheduledExecutorService getScheduledExecutorService(){
        return Executors.newScheduledThreadPool(10);
    }

    public static void main(String[] args) {
        //getScheduledExecutorService().scheduleAtFixedRate()
    }
}
